package com.itcast.Extends1;

public abstract class preson {
    private String name;
    private String id;
    private int gz;

    public preson() {
    }

    public preson(String name, String id, int gz) {
        this.name = name;
        this.id = id;
        this.gz = gz;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getGz() {
        return gz;
    }

    public void setGz(int gz) {
        this.gz = gz;
    }

    public abstract void work();
}
